import request from '@/utils/request'

export function listpartInv(query) {
  return request({
    url: '/part/partInv/list',
    method: 'get',
    params: query
  })
}

export function createpartInv(data) {
  return request({
    url: '/part/partInv/create',
    method: 'post',
    data
  })
}

export function readpartInv(data) {
  return request({
    url: '/part/partInv/get/' + data.id,
    method: 'get'
  })
}

export function updatepartInv(data) {
  return request({
    url: '/part/partInv/update',
    method: 'post',
    data
  })
}

export function deletepartInv(data) {
  return request({
    url: '/part/partInv/delete',
    method: 'post',
    data
  })
}
